package com.woniu113.junk.order.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 蜡笔没了小新
 * @since 2024年10月16日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("goods_order_info")
public class GoodsOrderInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    /**
     * 下单人id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 地址id
     */
    @TableField("address_id")
    private Integer addressId;

    /**
     * 商品id
     */
    @TableField("goods_id")
    private Integer goodsId;

    /**
     * 订单状态
     */
    @TableField("order_state")
    private Integer orderState;

    /**
     * 订单信息状态
     */
    @TableField("state")
    private Integer state;

    /**
     * 数量
     */
    @TableField("number")
    private Integer number;

    /**
     * 总积分
     */
    @TableField("total_integral")
    private Integer totalIntegral;

    /**
     * 下单时间
     */
    @TableField("time")
    private LocalDateTime time;

    /**
     * 完成时间
     */
    @TableField("end_time")
    private LocalDateTime endTime;

    /**
     * 商品信息
     * */
    @TableField("goods_info")
    private String goodsInfo;
}
